import request from '@/utils/request'
let lawServicePlatform = "lawServicePlatform";

// 分页获取已读通知
export function getReadNotices(data) {
    return request({
        url: lawServicePlatform + "/common/getReadNotices",
        method: 'post',
        data
    })
}

// 分页获取未读通知
export function getUnreadNotices(data) {
    return request({
        url: lawServicePlatform + "/common/getUnreadNotices",
        method: 'post',
        data
    })
}

// 设置通知已读
export function readNotice(data) {
    return request({
        // 注意这里后端写的路径单词receiceId比数据字典的少个r
        url: lawServicePlatform + "/common/readNotice?receiveId=" + data.receiverId,
        method: 'post',
        data
    })
}
